package com.peking.donations.dao;

import com.peking.donations.model.CallOrder;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wyz on 16/4/27.
 */
@Repository
public interface CallOrderDao  extends CrudRepository<CallOrder, Integer> {

    CallOrder findByUserId(int userId);

    List<CallOrder> findByName(String name);
}
